package com.bitdf.txing.group.feign.impl.ware;

import com.bitdf.txing.common.utils.R;
import com.bitdf.txing.users.entity.UserReceiveAddressEntity;
import com.bitdf.txing.users.service.UserReceiveAddressService;
import com.bitdf.txing.ware.feign.WareUserFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

/**
 * @author Lizhiwei
 * @date 2023/9/6 19:48:13
 * 注释：
 */
@Service
@ConditionalOnProperty(value = "tx.deploy.mode", havingValue = "standalone")
public class WareUserFeignServiceImpl implements WareUserFeignService {
    @Autowired
    UserReceiveAddressService userReceiveAddressService;
    @Override
    public R addrInfo(Long id) {
        UserReceiveAddressEntity UserReceiveAddress = userReceiveAddressService.getById(id);

        return R.ok().put("data", UserReceiveAddress);
    }
}
